You are here: Web API Service > 3 Change Port Number of Web API Service

3 Changing the Port Number for the GCS Web API Service

This section covers how to change the port number in the Web API Config file, which is used to connect with the DoorPoint and PersonPoint Apps.

 

IMPORTANT: You must restart your service after changing the port number.

 

Steps to Configure Port Number :

 

 

 

 

Always make a backup copy of your xml config file BEFORE you make any changes to it. Preserve the backup as a way to restore your working file in the event you mistakenly change or step on the surrounding code / commands.

  1. Make a backup of your XML config fileGCS.WebApi.WindowsService.
  2. Open the GCS.WebApi.WindowsService file.
the setup SSL batch file is located in …
(C:)GCS \ System Galaxy \ OptionalServices \ WebServices\

 

The Microsoft Visual Studio will launch.

 

 

 

 

 

  1. Press < Ctl+F > keyboard keys to open search box.
  2. Enter the default port number you wish to find.

i.e. enter HTTPPort  or  HTTPSPort

Visual Studio will highlight the appropriate row.

  1. carefully replace the existing port number with your desired port number.  
    DO NOT OVERWRITE OR DELETE ANY QUOTE (“ ”) MARKS OR ANY OTHER CHARACTERS!
  2. Click [Save] icon on the toolbar to save changes.
  3. Close the file and Visual Studio window.

 

Important: GCS Web API Service must be configured with a valid SG login and password that exists in System Galaxy. These credentials must be active/valid in System Galaxy and must have the appropriate privileges that support the functions of service.  The SG credentials must be configured into the service’s ‘exe.config’ file. This file can be encrypted using the same method and tools you use to encrypt the SG Web Module – See the Web Module Guide for encryption details.  This does not affect the main GCS Communication, Event, Client Gateway and DB writer services.

 

Restart the GCS.WebApi.WindowsService in the Services window.

  1. Open the Services window.
  2. Right-click the service name to get a context menu.
  3. Choose “Restart” from the context menu to restart the GCS.WebApi.WindowsService.

 

 

END OF INSTRUCTIONS